package vn.demand.dragon.controller
{
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	import vn.demand.dragon.model.UserProxy;
	import vn.demand.dragon.view.LoginDialogMediator;
	
	public class RequestLoginCommand extends SimpleCommand 
	{
		override public function execute( note:INotification ) : void    
		{
			facade.registerProxy(new UserProxy());
			var mediator:LoginDialogMediator = new LoginDialogMediator(note.getBody());
			facade.registerMediator(mediator);
			
			mediator.show();
		}

	}
}